using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using BlogSystem.Ability.Docking.UserApp.Dto;
using BlogSystem.Web.Filters;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Caching.Memory;

namespace BlogSystem.Web.Controllers
{
    [ApiController]
    [Route("api/[controller]/[action]")]
    [TypeFilter(typeof(CtmActionFilterAttribute))]
    public class BaseController : ControllerBase
    {
        public IMemoryCache Cache { get; set; }

        public LoginSuccessDto LoginSuccessInfo => HttpContext.Items["loginSuccessInfo"] as LoginSuccessDto; 
    }
}